﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiagrammInternalStructure.Exceptions
{
    public class FunctionAlreadyFoundException: EmptyFunctionAlredyFoundException
    {
        public const string SIGNATURE_TAG = "<signature>";
        const string MESSAGE = "Class " + CLASS_TAG + " already includes function called " + FUNCTION_TAG + " with signature = " + SIGNATURE_TAG;

        public FunctionAlreadyFoundException(string functionName, string className, FunctionSignature sign):base(MESSAGE.Replace(CLASS_TAG, className).Replace(FUNCTION_TAG, functionName).Replace(SIGNATURE_TAG, sign.ToString()))
        { 
        
        }
    }
}
